package org.mifos.boss.domainmodel;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class SavingProducts {
//
//	private String tempCustId;
	
	
	private short productId;
	
	private ClientCreationalData clientCreationalData;
	
//	@Id
//	public String getTempCustId() {
//		return tempCustId;
//	}
//	public void setTempCustId(String tempCustId) {
//		this.tempCustId = tempCustId;
//	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public short getProductId() {
		return productId;
	}
	public void setProductId(short productId) {
		this.productId = productId;
	}
	
	@ManyToOne
	@JoinColumn(name="TEMP_CUST_ID")
	public ClientCreationalData getClientCreationalData() {
		return clientCreationalData;
	}
	public void setClientCreationalData(ClientCreationalData clientCreationalData) {
		this.clientCreationalData = clientCreationalData;
	}
	
	
}
